Pod::Spec.new do |s|
  s.name             = 'at_auth_plugin'
  s.version          = '1.1.3'
  s.summary          = 'ATAuthSDK Flutter plugin'
  s.description      = <<-DESC
Flutter plugin for ATAuthSDK_D.xcframework
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
  
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*'
  s.public_header_files = 'Classes/**/*.h'
  s.dependency 'Flutter'
  s.platform = :ios, '12.0'
  
  # 添加 xcframework
  s.vendored_frameworks = 'Frameworks/ATAuthSDK_D.xcframework'
  s.preserve_paths = 'Frameworks/ATAuthSDK_D.xcframework/module.modulemap'
  
  # 动态库配置
  s.static_framework = false

  s.resources  = ['Assets/*'] 



s.pod_target_xcconfig = {
  'OTHER_LDFLAGS' => '$(inherited) -framework "ATAuthSDK_D"',
  'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/../../Frameworks"',
  'DEFINES_MODULE' => 'YES'
}
end
